home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Magazine / C_Tutorial / Part-13 / PatchLib / source / include / private / CommonFuncs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-27  |  1.5 KB  |  40 lines

  1. /*
  2. **    patch.library
  3. **
  4. **    Copyright © 1993-1997 by Stefan Fuchs
  5. **        Freely distributable.
  6. */
  7.  
  8.  
  9. /* Functions, used by many functions */
  10.  
  11. struct Node *FindPatchNotify( struct MsgPort *);
  12. void SendNotify( ULONG, struct Patch *);
  13. ULONG DisconnectStartType( struct MasterPatch *);
  14. ULONG ConnectStartType( struct MasterPatch *);
  15. ULONG FillOrigType( struct MasterPatch *);
  16. ULONG TestUsage( struct Patch *);
  17. ULONG TestPCUsage( struct Patch *, APTR );
  18. void ReCalcStackSize( struct MasterPatch *);
  19. void PreAllocatedStacksAlloc( struct MasterPatch *, ULONG);
  20. void PreAllocatedStacksFree( struct MasterPatch *);
  21. struct MasterPatch *GetMasterPatch( struct Patch *);
  22. ULONG SAVEObtainSemaphore( void);
  23. ULONG SAVEObtainSemaphoreShared( void);
  24. ULONG TestPatchHandle( struct Patch *);
  25. struct PatchStack *AllocStack( ULONG );
  26. void FreeStack( struct PatchStack *);
  27. APTR BAllocmem( ULONG, ULONG);
  28.  
  29.  
  30. /* Functions, which may be called from assembler */
  31. struct PatchStack * LIBFUNC AllocStackCached( REGA0 struct Patch * GNUC_REGA0, REGD0 ULONG GNUC_REGD0);
  32. void LIBFUNC FreeStackCached( REGA1 struct PatchStack * GNUC_REGA1);
  33. ULONG LIBFUNC PatchMatch( REGA0 struct TLHeader * GNUC_REGA0);
  34.  
  35.  
  36. /* Functions, which can't be currently implemented in C */
  37. void ASMFUNC InitPatchCode( REGA0 struct Patch * GNUC_REGA0);
  38. void ASMFUNC GetPatchCodeTemplate( REGA0 struct Patch * GNUC_REGA0, REGA1 ULONG[] GNUC_REGA1);
  39. APTR ASMFUNC GetPC( REGA0 APTR GNUC_REGA0, REGA6 struct ExecBase * GNUC_REGA6);
  40. void ASMFUNC SetupAsmEnv( REGA0 struct PatchBase * GNUC_REGA0);